package com.zzh.lib.views.drawer;


import com.zzh.lib.views.banner.IndicatorOptions;
import com.zzh.lib.views.def.IndicatorStyle;

/**
 * Created by ZZH on 2023/2/16.
 *
 * @date: 2023/2/16 09:36
 * @email: zzh_hz@126.com
 * @author: zzh
 * @description: com.zzh.lib.views.drawer
 */
public class DrawerFactory {
    public static IDrawer createDrawer(IndicatorOptions indicatorOptions) {

        switch (indicatorOptions.getIndicatorStyle()){
            case IndicatorStyle.DASH:
                return new DashDrawer(indicatorOptions);
            case IndicatorStyle.ROUND_RECT:
                return new RoundRectDrawer(indicatorOptions);
            default:
                return new CircleDrawer(indicatorOptions);
        }
    }

}
